package weborb.gcf.security;


import weborb.security.IAuthenticationHandler;
import weborb.security.WebORBAuthenticationException;
import weborb.message.Message;


public class AuthentificationHandler implements IAuthenticationHandler {
	public void checkCredentials( String userid, String password, Message message )
		throws WebORBAuthenticationException 
	{
		System.out.println("checkCredentials ["+userid+"] ["+password+"]");
		if ( userid.equals("dek") || userid.equals("arm") || userid.equals("admin") )
			return;
		System.out.println("checkCredentials denied");
		throw new WebORBAuthenticationException( "Invalid login", 200 );

    }
}
